package com.mesSystem.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.sql.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("equipment")
public class Equipment {
    public Equipment(Long equipmentId, String name) {
        this.equipmentId = equipmentId;
        this.name = name;
    }
    @TableId(value = "equipment_id", type = IdType.AUTO)
    /**
     * 设备编码
     */
    private Long equipmentId;
    /**
     * 设备名称
     */
    private String name;
    /**
     * 设备类型
     */
    private String type;
    /**
     * 设备状态
     */
    private String status;
    /**
     * 设备plc通信设备标识（唯一！）
     */
    private String plcController;
    /**
     * 采购日期
     */
    private Date pruchaseDate;
    /**
     * 设备描述
     */
    private String description;
    
}
